package com.luli.entity;

/**
 * 陆离
 * 2024/12/9
 */
public class ClassB {
    private int assignedValue;

    // 通过构造函数接收ClassA的值并赋值给自身字段
    public ClassB(ClassA classA) {
        this.assignedValue = classA.getValue();
    }

    public int getAssignedValue() {
        return assignedValue;
    }
}
